package net.sunofbeach.blog.controller.admin;


import io.swagger.annotations.Api;
import net.sunofbeach.blog.response.Result;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author Bing
 * @since 2021-11-24
 */
@Api(tags = "评论管理")
@RestController
@RequestMapping("/admin/comment")
public class CommentAdmintApi {


    /**
     * 删除
     *
     * @param commentId
     * @return
     */
    @DeleteMapping("/{commentId}")
    public Result deleteComment(@PathVariable("commentId") String commentId) {
        return null;
    }


    /**
     * 评论列表
     *
     * @return
     */
    @GetMapping("/list")
    public Result listComments(@RequestParam("page") int page, @RequestParam("size") int size) {
        return null;
    }

    /**
     * 置顶
     *
     * @param commentId
     * @return
     */
    @PutMapping("/top/{commentId}")
    public Result topComment(@PathVariable("commentId") String commentId) {
        return null;
    }


}

